package com.aorise.model.expose;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;

/**
 * @Auther: zhouhao
 * @Date: 2019/7/11
 * @Description:    外接设备状态(继电器控制)
 */
@Validated
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value="EXT",description="外接设备状态(继电器控制)")
public class EXT {

    @ApiModelProperty(value = "AC220V端口1电源开启:ON,关闭:OFF")
    private String AC1;

    @ApiModelProperty(value = "AC220V端口2电源开启:ON,关闭:OFF")
    private String AC2;

    @ApiModelProperty(value = "AC220V端口3电源开启:ON,关闭:OFF")
    private String AC3;

    @ApiModelProperty(value = "IPC1电源开启:ON,关闭:OFF")
    @NotNull(message = "IPC1不能为空")
    private String IPC1;

    @ApiModelProperty(value = "IPC2电源开启:ON,关闭:OFF")
    @NotNull(message = "IPC2不能为空")
    private String IPC2;

    @ApiModelProperty(value = "IPC3电源开启:ON,关闭:OFF")
    @NotNull(message = "IPC3不能为空")
    private String IPC3;

    @JsonProperty("AC1")
    public String getAC1() {
        return AC1;
    }

    @JsonProperty("AC1")
    public void setAC1(String AC1) {
        this.AC1 = AC1;
    }

    @JsonProperty("AC2")
    public String getAC2() {
        return AC2;
    }

    @JsonProperty("AC2")
    public void setAC2(String AC2) {
        this.AC2 = AC2;
    }

    @JsonProperty("AC3")
    public String getAC3() {
        return AC3;
    }

    @JsonProperty("AC3")
    public void setAC3(String AC3) {
        this.AC3 = AC3;
    }

    @JsonProperty("IPC1")
    public String getIPC1() {
        return IPC1;
    }

    @JsonProperty("IPC1")
    public void setIPC1(String IPC1) {
        this.IPC1 = IPC1;
    }

    @JsonProperty("IPC2")
    public String getIPC2() {
        return IPC2;
    }

    @JsonProperty("IPC2")
    public void setIPC2(String IPC2) {
        this.IPC2 = IPC2;
    }

    @JsonProperty("IPC3")
    public String getIPC3() {
        return IPC3;
    }

    @JsonProperty("IPC3")
    public void setIPC3(String IPC3) {
        this.IPC3 = IPC3;
    }
}
